﻿$("#cha2").click(function () {
    new Vue({
        el: '#ca00',
        data: {
            
            Car_listData: [],
           

        },
        beforeMount: function () {
            let that = this;
            $.get(
                "/Login/look2",
                {
                    key: $('#cha1').val(),
                },
                function (res) {
                    console.log(res);
                    that.Car_listData = res;
                }
            );
            
        }

    })

})

$("#t105").click(function () {

    $.post(
        '/Login/Add',
        {
            //获取账号和密码
            cid: $('#t101').val(),
            pid: $('#t102').val(),
            timein: $('#t103').val(),
            timeout: $('#t104').val(),
        }
    );
    window.location.href = "/Home/Index2";
})

$("#t206").click(function () {
    $.post(
        '/Login/Update',
        {
            //获取账号和密码
            cid: $('#t201').val(),
            pid: $('#t203').val(),
            timein: $('#t204').val(),
            timeout: $('#t205').val(),
        },
    );
    window.location.href = "/Home/Index2";
        }
    )
})
    new Vue({
        el: '#c400',
        data: {
            Port_listData:[],
            
        },
        beforeMount: function () {
            let that = this;
            $.get(
                "/Login/show2",

                function (res) {
                    console.log(res);
                    that.Port_listData = res;
                }
            );
        }

    })

new Vue({
    el: '#c500',
    data: {
        Carport_listData: [],

    },
    beforeMount: function () {
        let that = this;
        $.get(
            "/Login/Show1",

            function (res) {
                console.log(res);
                that.Carport_listData = res;
            }
        );
    }

})


